package com.yc.navy.goods.dto;

public class BalanceInfoDTO {
	private String bsize;
	private String bcolor;
	private Integer bnum;
	private Integer bid;
	private Integer pid;
	private Integer num;

	@Override
	public String toString() {
		return "BalanceInfoDTO [bsize=" + bsize + ", bcolor=" + bcolor + ", bnum=" + bnum + ", bid=" + bid + ", pid="
				+ pid + ", num=" + num + "]";
	}

	public String getBsize() {
		return bsize;
	}

	public void setBsize(String bsize) {
		this.bsize = bsize;
	}

	public String getBcolor() {
		return bcolor;
	}

	public void setBcolor(String bcolor) {
		this.bcolor = bcolor;
	}

	public Integer getBnum() {
		return bnum;
	}

	public void setBnum(Integer bnum) {
		this.bnum = bnum;
	}

	public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bcolor == null) ? 0 : bcolor.hashCode());
		result = prime * result + ((bid == null) ? 0 : bid.hashCode());
		result = prime * result + ((bnum == null) ? 0 : bnum.hashCode());
		result = prime * result + ((bsize == null) ? 0 : bsize.hashCode());
		result = prime * result + ((num == null) ? 0 : num.hashCode());
		result = prime * result + ((pid == null) ? 0 : pid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BalanceInfoDTO other = (BalanceInfoDTO) obj;
		if (bcolor == null) {
			if (other.bcolor != null)
				return false;
		} else if (!bcolor.equals(other.bcolor))
			return false;
		if (bid == null) {
			if (other.bid != null)
				return false;
		} else if (!bid.equals(other.bid))
			return false;
		if (bnum == null) {
			if (other.bnum != null)
				return false;
		} else if (!bnum.equals(other.bnum))
			return false;
		if (bsize == null) {
			if (other.bsize != null)
				return false;
		} else if (!bsize.equals(other.bsize))
			return false;
		if (num == null) {
			if (other.num != null)
				return false;
		} else if (!num.equals(other.num))
			return false;
		if (pid == null) {
			if (other.pid != null)
				return false;
		} else if (!pid.equals(other.pid))
			return false;
		return true;
	}
}	
